<%@tag pageEncoding="UTF-8"%>
<%@ attribute name="field" type="java.lang.String" required="true"%>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

<c:if test="${sortType == field}">
<a href="?sortType=${field}&sortDire=${sortDire == "asc" ? "desc" : "asc"}&${searchParams}" title="点击按${content}排序" style="color:black">${sortTypes[field]}</a>
</c:if>
<c:if test="${sortType != field}">
<a href="?sortType=${field}&sortDire=asc&${searchParams}" title="点击按${content}排序" style="color:black">${sortTypes[field]}</a>
</c:if>